﻿@using Props.Backend;
@model Props.CustomWeb.Models.HomeIndexModel
@{
    ViewBag.Title = "Ruffino Propiedades";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="row">
    <div class="span3">
        <div class="well">
            <select>
                <option value="-1">Tipo de Operación</option>
                @foreach (var val in Enum.GetValues(typeof(OperationEnum)))
                {
                    <option value="@((int)val)">@val.GetDisplayName()</option>
                }
            </select>
            <select>
                <option value="-1">Tipo de Propiedad</option>
                @foreach (var val in Enum.GetValues(typeof(PropertyTypeEnum)))
                {
                    <option value="@((int)val)">@val.GetDisplayName()</option>
                }
            </select>
            <select>
                <option value="-1">Ambientes</option>
                @foreach (var val in Enum.GetValues(typeof(RoomsEnum)))
                {
                    <option value="@((int)val)">@val.GetDisplayName()</option>
                }
            </select>
            <select>
                <option value="-1">Zona Geográfica</option>
                <option value="5055">Bs.As. G.B.A. Zona Norte</option>
                <option value="2277">Bs.As. G.B.A. Zona Oeste</option>
                <option value="3979">Bs.As. G.B.A. Zona Sur</option>
                <option value="4314">Buenos Aires Costa Atlántica</option>
                <option value="587">Buenos Aires Interior</option>
                <option value="3642">Capital Federal</option>
                <option value="2811">Catamarca</option>
                <option value="3542">Chaco</option>
                <option value="5785">Chubut</option>
                <option value="488">Corrientes</option>
                <option value="1854">Córdoba</option>
                <option value="4364">Entre Ríos</option>
                <option value="5474">Formosa</option>
                <option value="1571">Jujuy</option>
                <option value="2700">La Pampa</option>
                <option value="139">La Rioja</option>
                <option value="5265">Mendoza</option>
                <option value="5169">Misiones</option>
                <option value="5970">Neuquén</option>
                <option value="5540">Otros países</option>
                <option value="3705">Río Negro</option>
                <option value="2360">Salta</option>
                <option value="3903">San Luis</option>
                <option value="6133">Santa Cruz</option>
                <option value="4659">Santa Fe</option>
                <option value="4096">Santiago Del Estero</option>
                <option value="2350">Tierra Del Fuego</option>
                <option value="2">Tucumán</option>
            </select>
            <select>
                <option value="-1">Localidad</option>
            </select>
            <br />
            <input id="precio" type="text" class="input-small pull-left" placeholder="Valor Desde" />
            <input type="text" class="input-small pull-left" placeholder="Valor Hasta" />
            <br />
            <p>
            <button class="btn btn-primary pull-right" type="submit">
                Buscar
            </button>
            <a href="" class="pull-right" style="margin-top: 5px; margin-right: 10px;">Búsqueda
                Avanzada</a>
            </p>
            <p>
                <span class="help-block" id="register-help-block">&nbsp;</span>
            </p>
        </div>
    </div>
    <div class="span6">
        <div>
            <div id="myCarousel" class="carousel slide">
                <!-- Carousel items -->
                <div class="carousel-inner">
                    @foreach (var item in Model.VendorProfile.CarrouselItems)
                    {
                        <div class="item @(Model.VendorProfile.CarrouselItems.First().Equals(item) ? "active" : "")">
                            <img src="@(item.PicUrl.StartsWith("~/Content") ? Url.Content(item.PicUrl) : item.PicUrl)" alt="">
                            <div class="carousel-caption">
                                <h4>@item.Label
                                </h4>
                                <p>@item.Description
                                </p>
                            </div>
                        </div>
                    }
                </div>
                <!-- Carousel nav -->
                <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
                <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
            </div>
        </div>
    </div>
    <div class="span3">
        <div class="well centered semi-opaque">
            <p>
                <b>@Model.VendorProfile.Title</b>
            </p>
            <p>
                <img src="@Model.VendorProfile.LogoUrl" alt="logo" />
            </p>
            <p>
                @foreach (var address in Model.VendorProfile.Addresses)
                {
                    <text>
                    @address
                    <br />
                    </text>
                }
            </p>
            <p>
                @foreach (var email in Model.VendorProfile.Emails)
                {
                    <text> <a href="mailto:@email">@email</a>
                    <br />
                    </text>
                }
            </p>
            <p>
                @foreach (var phone in Model.VendorProfile.Phones)
                {
                    <text>
                    @phone
                    <br />
                    </text>
                }
            </p>
            <p>
                @foreach (var network in Model.VendorProfile.Networks)
                {
                    <text> <a href="@network">@network</a>
                    </text>
                }
            </p>
        </div>
    </div>
</div>
